<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script src="resources/js/jquery-1.7.2.min.js"></script>
<script src="resources/js/cordova-2.1.0.js"></script>
<script src="jquery.copy.js"></script>
<script>
function copyText() {
 ClipboardManager.prototype.copy(
    "the text to copy",
    function(r){alert("copy is successful")},
    function(e){alert(e)}
);

}
</script> 

</head>


<body>
	<input type="text" id="tt" value="你好啊"><br/>
<input type="button" value="点此全选复制" onclick="javascript:copyText()" >
</body>
</html>
